package com.wwj.tem.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: wwj
 * @create: 2024/7/28 - 17:26
 * Description:
 */
@Data
@ApiModel(value = "系统基本实体类")
public class BaseEntity implements Serializable {
	
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	
	/**
	 * 逻辑删除（0-未删除 1-已删除）
	 */
	@TableField
	@ApiModelProperty(value = "逻辑删除（0-未删除 1-已删除）")
	private Integer isDeleted;
	
	/**
	 * 创建人账号
	 */
	@ApiModelProperty(value = "创建人账户id")
	private Integer createBy;
	
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
	private Date createTime;
	
	/**
	 * 更新人账号
	 */
	@ApiModelProperty(value = "更新人账户id")
	private Integer updateBy;
	
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
	private Date updateTime;
}
